package com.whz.workmanageol.service.impl;


import com.whz.workmanageol.dao.CourseMapper;
import com.whz.workmanageol.entity.Course;
import com.whz.workmanageol.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class CourseServiceImpl implements CourseService {
    @Autowired
    private CourseMapper courseMapper;

    @Override
    public Course findCourseById(String courseid) {
        return courseMapper.selectByPrimaryKey(courseid);
    }
}
